import  time
from selenium import webdriver
from  selenium.webdriver.support  import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By

# driver = webdriver.Chrome()
# driver.get("https://www.baidu.com")
# # func = lambda x: True if x.title=='百度一下'
# resuit1 = WebDriverWait(driver, 10).until(lambda  x:True if x.title == '百度一下, 你就知道' else False, message='标题不一致' )
# print(resuit1)
# resuit2 = WebDriverWait(driver, 10).until_not(lambda x:True if x.title == '百度一下, 你就知道'else False, message='标题不一致')
# print(resuit2)
# driver.quit()
driver = webdriver.Chrome()
driver.get("https://www.baidu.com")

